class Contactcon

	def initialize()
		@lists = {"id" => "1"}
        @contact = {
          'first_name'=> "LA QUAN",
          'last_name' => "LA NGUYEN",
          'middle_name' => "LA TAO"
        }

        @email = {
          'email_address' => "ififif@yahoo.com"
        }
        @contact['lists']=[]
        @contact['email_addresses']=[]
        @contact['email_addresses'] << @email
        @contact['lists'] << @lists
		@token='154d9dc4-4313-4d24-bd1b-6a1940738f24'
    	@cc = ConstantContact::Api.new('cuky27fwykbpaw4qa7cnwfng')
    	contact = ConstantContact::Components::Contact.create(@contact)
    	@cc.add_contact(@token, contact)
	end
end